home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / ErrorDef.idl < prev    next >
Encoding:
Text File  |  1997-02-13  |  17.0 KB  |  460 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3.  
  4. #ifndef _ERRORDEF_
  5. #define _ERRORDEF_
  6.  
  7. #ifndef _ODTYPESB_
  8. #include "ODTypesB.idl"
  9. #endif
  10.  
  11. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  12. #pragma somemittypes on
  13. #endif
  14.  
  15. //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  16. //# BEGIN-UNDER CONSTRUCTION
  17. //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  18.  
  19.  
  20.  
  21.  
  22. //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  23. //# END-UNDER CONSTRUCTION
  24. //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  25.  
  26. //#=============================================================================
  27. //# General Errors including ODObject
  28. //#=============================================================================
  29.  
  30. const ODError kODMinError                            =    -29849;    // Range of OD err codes
  31. const ODError kODMinUsedError                        =    -29764;
  32. const ODError kODMaxError                            =    -29600;
  33.  
  34. //# Currently unused slots: None
  35.  
  36. const ODError kODNoError                             =     0;
  37.  
  38.  
  39. const ODError kODErrUndefined                          =     -29600;
  40.  
  41. //# NEW
  42. const ODError kODErrAlreadyNotified                    =    -29601;
  43.  
  44. const ODError kODErrIllegalNullInput                =    -29602;
  45.  
  46. const ODError kODErrIllegalNullDispatchModuleInput    =    -29603;
  47. const ODError kODErrIllegalNullFacetInput            =    -29604;
  48. const ODError kODErrIllegalNullFrameInput            =    -29605;
  49. const ODError kODErrIllegalNullPartInput              =    -29606;
  50. const ODError kODErrIllegalNullTransformInput        =    -29607;
  51. const ODError kODErrIllegalNullStorageSystemInput    =    -29608;
  52. const ODError kODErrIllegalNullTokenInput            =    -29609;
  53. const ODError kODErrIllegalNullShapeInput            =    -29610;
  54. const ODError kODErrIllegalNullStorageUnitInput        =    -29611;
  55. const ODError kODErrIllegalNullPropertyInput          =    -29612;
  56. const ODError kODErrIllegalNullSUCursorInput        =    -29613;
  57. const ODError kODErrIllegalNullContainerInput       =    -29614;
  58. const ODError kODErrIllegalNullDocumentInput        =    -29615;
  59. const ODError kODErrIllegalNullDraftInput            =    -29616;
  60. const ODError kODErrIllegalNullValueTypeInput       =    -29617;
  61. const ODError kODErrIllegalNullIDInput                =    -29618;
  62.  
  63. //# NEW
  64. const ODError kODErrValueOutOfRange                    =    -29619;
  65.  
  66. //# NEW
  67. const ODError kODErrInsufficientInfoInParams        =    -29620;
  68.  
  69. const ODError kODErrObjectNotInitialized            =   -29621;
  70.  
  71. const ODError kODErrOutOfMemory                      =     -29622;
  72.  
  73. const ODError kODErrNotImplemented                    =     -29623;
  74.  
  75. //# NEW
  76. const ODError kODErrInvalidPersistentFormat            =    -29624;
  77.  
  78. const ODError kODErrSubClassResponsibility             =     -29625;
  79.  
  80. //#------------------------------------------------------------------------------
  81. //# ODObject (& subclasses)
  82. //#------------------------------------------------------------------------------
  83.  
  84. const ODError kODErrUnsupportedExtension             =    -29626;
  85. const ODError kODErrInvalidExtension                     =    -29627;
  86. const ODError kODErrUnknownExtension                 =    -29628;
  87. const ODError kODErrInvalidObjectType                =    -29629;
  88. const ODError kODErrInvalidPersistentObjectID        =    -29630;
  89. const ODError kODErrInvalidPersistentObject            =    -29631;
  90.  
  91. //#------------------------------------------------------------------------------
  92. //# RefCountObject (& subclasses)
  93. //#------------------------------------------------------------------------------
  94.  
  95. const ODError kODErrZeroRefCount                      =     -29632;
  96.  
  97. //# NEW
  98. const ODError kODErrRefCountGreaterThanZero           =     -29633;
  99.  
  100. const ODError kODErrRefCountNotEqualOne              =     -29634;
  101.  
  102. //#------------------------------------------------------------------------------
  103. //# Iterators
  104. //#------------------------------------------------------------------------------
  105.  
  106. const ODError kODErrIteratorOutOfSync               =     -29635;
  107. const ODError kODErrIteratorNotInitialized           =     -29636;
  108. const ODError kODErrInvalidIterator                       =     -29755;
  109.  
  110. //#==============================================================================
  111. //# Parts Return These Errors
  112. //#==============================================================================
  113.  
  114. const ODError kODErrCannotEmbed                      =    -29637;
  115. const ODError kODErrDoesNotUndo                      =    -29638;
  116. const ODError kODErrNoPromises                      =    -29639;
  117. const ODError kODErrDoesNotDrop                      =    -29640;
  118. const ODError kODErrDoesNotLink                      =    -29641;
  119. const ODError kODErrPartNotWrapper                  =    -29642;
  120.  
  121. //#==============================================================================
  122. //# Core
  123. //#==============================================================================
  124.  
  125. //#------------------------------------------------------------------------------
  126. //# ODNameSpaceManager, ODNameSpace
  127. //#------------------------------------------------------------------------------
  128.  
  129. const ODError kODErrKeyAlreadyExists                =     -29643;
  130.  
  131. //# NEW
  132. const ODError kODErrInvalidNSName                    =    -29644;
  133.  
  134. //# NEW
  135. const ODError kODErrInvalidNSType                    =    -29645;
  136.  
  137. //#------------------------------------------------------------------------------
  138. //# PartWrapper
  139. //#------------------------------------------------------------------------------
  140.  
  141. const ODError kODErrPartInUse                       =     -29646;
  142.  
  143. //#------------------------------------------------------------------------------
  144. //# PartWrapper
  145. //#------------------------------------------------------------------------------
  146.  
  147. //# NEW
  148. const ODError kODErrInvalidITextFormat               =     -29647;
  149.  
  150. //#==============================================================================
  151. //# Imaging
  152. //#==============================================================================
  153.  
  154. const ODError kODErrInvalidGraphicsSystem            =     -29648;
  155.  
  156. //#------------------------------------------------------------------------------
  157. //# Shape
  158. //#------------------------------------------------------------------------------
  159.  
  160. const ODError kODErrNoShapeGeometry                    =    -29649; //# Shape has no polygon representation
  161.  
  162. //#------------------------------------------------------------------------------
  163. //# Transform
  164. //#------------------------------------------------------------------------------
  165.  
  166. const ODError kODErrTransformErr                      =    -29650; //# Illegal op on xform
  167.  
  168. //# NEW
  169. const ODError kODErrInvalidPlatformShape            =    -29651;
  170.  
  171. //#==============================================================================
  172. //# Layout
  173. //#==============================================================================
  174.  
  175. //#------------------------------------------------------------------------------
  176. //# Facet
  177. //#------------------------------------------------------------------------------
  178.  
  179. const ODError kODErrCanvasNotFound                    =    -29652; 
  180.  
  181. const ODError kODErrUnsupportedFramePositionCode    =    -29653;
  182.  
  183. const ODError kODErrInvalidFacet                      =    -29654;
  184.  
  185. const ODError kODErrFacetNotFound                      =    -29655;
  186. const ODError kODErrCanvasHasNoOwner                  =    -29656;
  187.  
  188. //#------------------------------------------------------------------------------
  189. //# Frame
  190. //#------------------------------------------------------------------------------
  191.  
  192. const ODError kODErrNotRootFrame                    =    -29657;
  193. const ODError kODErrIllegalRecursiveEmbedding        =    -29658;
  194.  
  195. const ODError kODErrInvalidFrame                      =    -29659;
  196.  
  197. const ODError kODErrFrameHasFacets                  =    -29660;
  198.  
  199. const ODError kODErrInvalidLinkStatus                  =    -29754;
  200.  
  201. //#==============================================================================
  202. //# Memory
  203. //#==============================================================================
  204.  
  205. const ODError kODErrInvalidBlock                    =    -29661;    //# bad heap or damaged object
  206.  
  207. //#==============================================================================
  208. //# Messaging
  209. //#==============================================================================
  210.  
  211. //#------------------------------------------------------------------------------
  212. //# Semantic Interface
  213. //#------------------------------------------------------------------------------
  214.  
  215. //# NEW
  216. const ODError kODErrNotAnODToken                      =    -29662;
  217.  
  218. //# NEW
  219. const ODError kODErrCantCountFromLists                =    -29663;
  220.  
  221. //#==============================================================================
  222. //# Storage
  223. //#==============================================================================
  224.  
  225. const ODError kODErrUnsupportedPosCode                =    -29664;
  226. const ODError kODErrInvalidPermissions              =    -29665;
  227.  
  228. const ODError kODErrCannotCreateContainer              =    -29666;
  229. const ODError kODErrCannotOpenContainer                =    -29667;
  230.  
  231. //# NEW
  232. const ODError kODErrFatalContainerError                =    -29756;
  233.  
  234. //# NEW
  235. const ODError kODErrContainerDoesNotExist            =    -29668;
  236.  
  237. //# NEW
  238. const ODError kODErrDocumentDoesNotExist            =    -29669;
  239.  
  240. //# NEW
  241. const ODError kODErrDraftDoesNotExist                =    -29670;
  242. const ODError kODErrDraftHasBeenDeleted                =    -29671;
  243.  
  244. const ODError kODErrInvalidStorageUnit                =    -29672;
  245.  
  246. //# NEW
  247. const ODError kODErrIllegalOperationOnSU            =    -29673;
  248.  
  249. //# NEW
  250. const ODError kODErrSUValueDoesNotExist                =    -29674;
  251.  
  252. //# NEW
  253. const ODError kODErrIllegalNonTopmostDraft            =    -29675;
  254.  
  255. //# NEW
  256. const ODError kODErrNoSysTranslationFacility        =    -29680;
  257.  
  258. //#------------------------------------------------------------------------------
  259. //# Storage Unit
  260. //#------------------------------------------------------------------------------
  261.  
  262. const ODError kODErrNoValueAtThatIndex              =    -29676;
  263. const ODError kODErrCannotAddProperty                  =    -29677;
  264.  
  265. const ODError kODErrUnfocusedStorageUnit              =    -29678;
  266. const ODError kODErrInvalidStorageUnitRef            =    -29679;
  267. //#const ODError kODErrStorageUnitLocked                  =    -29680;
  268. const ODError kODErrInvalidStorageUnitKey            =    -29681;
  269. const ODError kODErrStorageUnitNotLocked              =    -29682;
  270. const ODError kODErrInvalidDraftKey                    =    -29683;
  271. const ODError kODErrCloningInProgress                =   -29684;
  272. const ODError kODErrValueIndexOutOfRange            =   -29685;
  273.  
  274. //# NEW
  275. const ODError kODErrInvalidValueType                =    -29686;
  276.  
  277. //# NEW
  278. const ODError kODErrIllegalPropertyName                =    -29687;
  279. const ODError kODErrPropertyDoesNotExist            =    -29688;
  280.  
  281. //#------------------------------------------------------------------------------
  282. //# Draft
  283. //#------------------------------------------------------------------------------
  284.  
  285. const ODError kODErrNoDraftProperties                  =     -29689;
  286. const ODError kODErrCannotCreateFrame                  =    -29690;
  287. const ODError kODErrCannotAcquireFrame               =    -29691;
  288. const ODError kODErrCannotCreatePart                =    -29692; //# I hate this error.
  289. // const ODError kODErrCannotAcquirePart            =    -29693; not used
  290. const ODError kODErrCannotCreateLink                =    -29694;
  291. const ODError kODErrCannotAcquireLink                =    -29695;
  292.  
  293. const ODError kODErrInvalidID                          =    -29696;
  294. const ODError kODErrCannotDeferClone                  =    -29757;
  295. const ODError kODErrCannotCloneFrame                  =    -29759;
  296. const ODError kODErrNullCMIDList                    =     -29760;
  297. const ODError kODErrEmptyCMObjectIDOrList            =     -29761;
  298. const ODError kODErrCMObjectIDNotFound                =     -29762;
  299. const ODError kODErrNoCMIDList                        =     -29763;
  300.  
  301. const ODError kODErrInconsistentCloneKind            =    -29697;
  302. const ODError kODErrInvalidCloneKind                =    -29698;
  303. const ODError kODErrInvalidDestinationDraft            =     -29699;
  304. const ODError kODErrMoveIntoSelf                    =    -29700;
  305. const ODError kODErrNullDestinationFrame            =    -29701;
  306.  
  307. //#------------------------------------------------------------------------------
  308. //# Document
  309. //#------------------------------------------------------------------------------
  310.  
  311. const ODError kODErrInvalidBelowDraft                  =    -29702;
  312. const ODError kODErrCannotCollapseDrafts              =    -29704;
  313. const ODError kODErrNonEmptyDraft                   =    -29705;
  314. const ODError kODErrNoPreviousDraft                    =    -29706;
  315. const ODError kODErrOutstandingDraft                =    -29707;
  316. const ODError kODErrInvalidDraftID                    =    -29708;
  317. const ODError kODErrCannotChangePermissions            =    -29709;
  318.  
  319. //#------------------------------------------------------------------------------
  320. //# Storage System
  321. //#------------------------------------------------------------------------------
  322.  
  323. const ODError kODErrContainerExists                    =    -29710;
  324.  
  325. //#------------------------------------------------------------------------------
  326. //# LinkSpec
  327. //#------------------------------------------------------------------------------
  328.  
  329. const ODError kODErrCannotGetExternalLink            =    -29712;
  330. const ODError kODErrNoLinkSpecValue                    =    -29713;
  331. const ODError kODErrUnknownLinkSpecVersion            =    -29714;
  332. const ODError kODErrCorruptLinkSpecValue              =    -29715;
  333.  
  334. //#------------------------------------------------------------------------------
  335. //# Link
  336. //#------------------------------------------------------------------------------
  337.  
  338. const ODError kODErrNotExportedLink                    =    -29716;
  339. const ODError kODErrBrokenLink                      =    -29717;
  340. const ODError kODErrCannotRevealLink                =    -29718;
  341. const ODError kODErrCorruptLink                        =    -29719;
  342. const ODError kODErrLinkAlreadyExported                =    -29720;
  343. const ODError kODErrNoLinkContent                    =    -29721;
  344. const ODError kODErrCannotRegisterDependent            =    -29722;
  345.  
  346. //#------------------------------------------------------------------------------
  347. //# LinkSource
  348. //#------------------------------------------------------------------------------
  349.  
  350. const ODError kODErrNotImportedLink                    =    -29723;
  351. const ODError kODErrInvalidLinkKey                    =    -29724;
  352. const ODError kODErrBrokenLinkSource                  =    -29725;
  353. const ODError kODErrCorruptLinkSource                =    -29726;
  354. const ODError kODErrCannotFindLinkSourceEdition        =    -29727;    // Cannot locate source of cross document link because edition file does not exist
  355. const ODError kODErrCannotFindLinkSource            =    -29728;    // Cannot locate source of cross document link
  356. const ODError kODErrAlreadyImportedLink                =    -29729;    // Cannot create link due to Internal error
  357. const ODError kODErrUnknownUpdateID                    =    -29730;
  358. const ODError kODErrCannotEstablishLink                =    -29731;
  359.  
  360. //#------------------------------------------------------------------------------
  361. //# LinkManager
  362. //#------------------------------------------------------------------------------
  363.  
  364. const ODError kODErrNoEditionManager                =    -29732;
  365. const ODError kODErrDocNotSaved                        =    -29733;
  366.  
  367. //#------------------------------------------------------------------------------
  368. //# Data Interchange Dialogs
  369. //#------------------------------------------------------------------------------
  370.  
  371. const ODError kODErrNullFacetInput                    =    -29734;
  372. const ODError kODErrNullLinkInfoInput                =    -29735;
  373. const ODError kODErrNullLinkInfoResultInput            =    -29736;
  374. const ODError kODErrNullPasteAsResultInput            =    -29737;
  375.  
  376. //#------------------------------------------------------------------------------
  377. //# DragAndDrop
  378. //#------------------------------------------------------------------------------
  379.  
  380. const ODError kODErrNoDragManager                    =    -29738;
  381. const ODError kODErrNoDragSystemStorage              =    -29739;
  382. const ODError kODErrDragItemNotFound                =    -29740;
  383. const ODError kODErrCannotAllocateDragItem            =    -29741;
  384. const ODError kODErrUnknownDragImageType              =    -29742;
  385. const ODError kODErrDragTrackingException            =    -29743;
  386. const ODError kODErrCannotFulfillDragPromise        =     -29758;
  387.  
  388. //#------------------------------------------------------------------------------
  389. //# Clipboard
  390. //#------------------------------------------------------------------------------
  391.  
  392. const ODError kODErrBackgroundClipboardClear        =    -29744;
  393. const ODError kODErrIllegalClipboardCloneKind        =    -29745;
  394.  
  395. //#==============================================================================
  396. //# UI
  397. //#==============================================================================
  398.  
  399. //#------------------------------------------------------------------------------
  400. //# Arbitrator
  401. //#------------------------------------------------------------------------------
  402.  
  403. const ODError kODErrFocusAlreadyRegistered            =    -29746;
  404. const ODError kODErrFocusNotRegistered              =    -29747;
  405.  
  406. //#------------------------------------------------------------------------------
  407. //# Dispatcher
  408. //#------------------------------------------------------------------------------
  409.  
  410. //#MOVED-const ODError kODErrIllegalNullDispatchModuleInput
  411.  
  412. //#------------------------------------------------------------------------------
  413. //# MenuBar
  414. //#------------------------------------------------------------------------------
  415.  
  416. #ifdef _PLATFORM_MACINTOSH_
  417. const ODError kODErrInvalidCommandID                 =    -29748;
  418. #endif
  419.  
  420. //#------------------------------------------------------------------------------
  421. //# Undo
  422. //#------------------------------------------------------------------------------
  423.  
  424. const ODError kODErrCannotMarkAction                =    -29749;
  425. const ODError kODErrEmptyStack                      =    -29750;
  426. const ODError kODErrNoBeginAction                    =    -29751;
  427. const ODError kODErrCannotAddAction                    =    -29752;
  428.  
  429. //#------------------------------------------------------------------------------
  430. //# WindowState
  431. //#------------------------------------------------------------------------------
  432.  
  433. const ODError kODErrCannotCreateWindow              =    -29753;
  434. const ODError kODErrWindowModuleAlreadySet            =    -29764;
  435.  
  436.  
  437. //#-----------------------------------------------------------------------------
  438. //# Platform-specific errors
  439. //#-----------------------------------------------------------------------------
  440.  
  441. #ifdef _PLATFORM_MACINTOSH_
  442.  
  443.  
  444.  
  445. #endif //# _PLATFORM_MACINTOSH_
  446.  
  447.  
  448. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  449. #pragma somemittypes off
  450. #endif
  451.  
  452.  
  453. module OpenDoc_Errors 
  454. {
  455.     const string OpenDoc_Errors_Version = "1.0.";
  456. };
  457.  
  458. #endif //# _ERRORDEF_
  459.  
  460.